﻿using System.Collections.Generic;
using YmtAuth.Domain.Model.BlacklistUser;

namespace YmtAuth.Domain.Repository
{
    public interface IYmatouBlacklistUserRepository : IRepository_v1<YmatouBlacklistUser, string>
    {
    }

    //public interface IIpRequestHistoryRepository : IRepository_v1<IpRequestHistory, string>
    //{
    //}

    public interface IBlackListRepository : IRepository_v1<BlackList, string>
    {
        /// <summary>
        /// 获取IP黑名单配置规则
        /// </summary>
        /// <returns></returns>
        IDictionary<string, string> FindIpblacklistConfiguration(string id);
        void SaveIpblacklistConfiguration(IDictionary<string, string> cfg, string id);
    }
}
